package com.deer.wms.base.system.service.zh.impl;

import cn.hutool.core.convert.Convert;
import com.deer.wms.base.system.dao.bill.MaterialDetailMapper;
import com.deer.wms.base.system.dao.zh.BoxItemExceptionMapper;
import com.deer.wms.base.system.model.pda.Bnormal;
import com.deer.wms.base.system.model.zh.BoxItemException;
import com.deer.wms.base.system.service.zh.BoxItemExceptionService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李帅辰
 * @date 2021/6/4 17:23
 */
@Service
public class BoxItemExceptionServiceImpl extends AbstractService<BoxItemException,Integer>  implements BoxItemExceptionService {

    @Autowired
    private BoxItemExceptionMapper boxItemExceptionMapper;

    @Autowired
    private MaterialDetailMapper billInMaterialDetailMapper;

    @Override
    public BoxItemException findBoxItemException(BoxItemException boxItemException) {
        return boxItemExceptionMapper.findBoxItemException(boxItemException);
    }

    @Override
    public List<BoxItemException> findBoxItemExceptionList(BoxItemException boxItemException) {
        return boxItemExceptionMapper.findBoxItemExceptionList(boxItemException);
    }

    @Override
    public int delectBoxItemExceptionById(Integer exceptionId) {
        return boxItemExceptionMapper.delectBoxItemExceptionById(exceptionId);
    }

    @Override
    public int delectBoxItemExceptionByIds(String ids) {
        return boxItemExceptionMapper.delectBoxItemExceptionByIds(Convert.toStrArray(ids));
    }

    @Override
    public int saveBoxItemException(BoxItemException boxItemException) {
        return boxItemExceptionMapper.saveBoxItemException(boxItemException);
    }

    @Override
    public int updateBoxItemException(BoxItemException boxItemException) {
        return boxItemExceptionMapper.updateBoxItemException(boxItemException);
    }

    @Override
    public List<Bnormal> selectaBnormal(Bnormal bnormal) {
        return boxItemExceptionMapper.selectaBnormal(bnormal);
    }

    @Override
    public int updateBoxItemExceptionTime(BoxItemException boxItemException) {
        return boxItemExceptionMapper.updateBoxItemExceptionTime(boxItemException);
    }
}
